#pragma once

#include "UMLStructureDiagram.h"


namespace uml {

UMLStructureDiagram::UMLStructureDiagram(const QString& umlType)
    : UMLDiagramWithAssociations(umlType) {}

void UMLStructureDiagram::fromJson(const QJsonObject& json, QStringList& errorList) {
    if (json.isEmpty()) {
        return;
    }

    UMLDiagramWithAssociations::fromJson(json, errorList);
}

void UMLStructureDiagram::toJson(QJsonObject& json) {
    UMLDiagramWithAssociations::toJson(json);
}

} // namespace uml
